package sctu.edu.java.year2016.team07.nieying.day20160520.chapter4_1;

/**
 * Created by Administrator on 2016/5/20 0020.
 */

/**
 * 编写java程序，实现判断变量x是奇数还是偶数。
 */
public class panduanbianliang {
    public static void main(String[] args){
       int x=16;
       if(x%2==0){
           System.out.println("变量x是偶数!");
       }
       if(x%2!=0){
           System.out.println("变量x是奇数!");
       }
    }
}
